<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
    	$banner=M('banner');
        $bannerlist=$banner->select();
        $this->assign("bannerlist",$bannerlist);

        $carousel=M('carousel');
        $carousellist=$carousel->select();
        $this->assign("carousellist",$carousellist);

        $company=M('company');
        $companylist=$company->select();
        $this->assign("companylist",$companylist);

        $consulting=M('consulting');
        $consultinglist=$consulting->select();
        $this->assign("consultinglist",$consultinglist);
        $this->display();

    }
    // public function Replace(){
    //     $id=$_POST['Id'];
    //     $user=M('enroll_user');
    //     $list=$user->where("Id=".id)->select();
    //     $this->assign("list",$list);
    //     $this->display();
    // }
}